/*
 * @Description: 
 * @version: 1.0
 * @Author: ziwei
 * @Date: 2021-09-08 23:04:55
 * @LastEditors: ziwei
 * @LastEditTime: 2021-09-08 23:04:56
 */
const VueTemplateCompiler = require('vue-template-compiler');

let ele = VueTemplateCompiler.compile(`
<app>
<div slot-scope="msg" slot="slot">{{msg.a}}</div>
</app>
`)
console.log(ele);

with(this) {
    return _c('app', {
        scopedSlots: _u([{
            key: "slot",
            fn: function (msg) {
                return _c('div', {}, [_v(_s(msg.a))])
            }
        }])
    })
}